package com.dapeng.cleardatabackend.model.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.fasterxml.jackson.annotation.JsonValue;
import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @author dapeng
 * @description 图谱搜索模式
 * @date 2024/12/25 13:59
 */
@Getter
@AllArgsConstructor
public enum SearchModeEnum implements BaseEnum {

    NODE(0, "节点"),
    RELATION(1, "关系"),
    LABEL(2, "标签"),
    NODE_AND_RELATION(3, "节点和关系");

    @JsonValue
    @EnumValue
    private final Integer code;
    private final String name;
}
